home *** CD-ROM | disk | FTP | other *** search
- /*
- Globals.c -- Version 3.0
-
- Developer Technical Support Apple II Sample Code
-
- Copyright (c) 1990 by Apple Computer, Inc.
- All Rights Reserved.
-
- Defines (i.e. allocates storage for) global variables used
- in the network aware sample program.
- */
-
- #include <Window.h> /* {CIIGSIncludes}Window.h */
-
- int quitFlag; /* non-zero if Quit has been selected */
- WmTaskRec event; /* event record to get events from TaskMaster */
- GrafPortPtr lastWindow; /* keeps track of previous front window */
-
-
- /*
- InitGlobals()
-
- Sets up initial values for the global variables above.
- */
- void InitGlobals()
- {
- quitFlag = 0; /* Quit not selected yet */
- event.wmTaskMask = 0x001FFFFFL; /* Get all types of events */
- lastWindow = (GrafPortPtr)-1; /* No previous front window */
- }
-